<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="../css/mui.min.css" rel="stylesheet" />
    <!-- <link rel="stylesheet" type="text/css" href="../css/withaw.css" /> -->
</head>

<body>
    <!--index.wxml-->
    <div class="container page1" wx:if="{{pageType==1}}">
        <div class='home_title'>{{shop.shop_name}}</div>
        <div class='state_img' mode="widthFix">
            <image src="{{shop.shop_status=='on'?'../../img/on.jpg':'../../img/off.jpg'}}"></image>
        </div>
        <div class='state_choice'>
            <div class="{{shop.shop_status=='on'?'on active':'on'}}" bindtap="tabStatus" data-id="on">
                <div>
                    <image src="{{shop.shop_status=='on'?'../../img/open_active.png':'../../img/open.png'}}"></image>
                </div>
                <text>营业中</text>
            </div>
            <div class="{{shop.shop_status=='off'?'off active':'off'}}" bindtap="tabStatus" data-id="off">
                <div>
                    <image src="{{shop.shop_status=='off'?'../../img/close_active.png':'../../img/close.png'}}"></image>
                </div>
                <text>打烊</text>
            </div>
        </div>
    </div>
    <!--order.wxml  -->
    <div class="container page3" wx:if="{{pageType==3}}">
        <div class="P_title order_title">
            <div class="{{orderOrBusiness=='order'?'P_order P_active':'P_order'}}" bindtap="newOrder" id='2' data-id="order">
                <text>新订单</text>
            </div>
            <div class="{{orderOrBusiness=='get'?'P_get P_active':'P_get'}}" bindtap="orders" data-status='1' data-id="get">
                <text>已接订单</text>
            </div>
            <div class="{{orderOrBusiness=='eva'?'P_eva P_active':'P_eva'}}" bindtap="tabChange" id='6' data-id="eva">
                <text>已完成</text>
            </div>
            <div class="{{orderOrBusiness=='refund'?'P_refund P_active':'P_refund'}}" bindtap="tabChange" id='8' data-id="refund">
                <text>退款/售后</text>
            </div>
        </div>
        <div class="P_order_P" wx:if="{{orderOrBusiness=='order'}}">
            <div class="goods" wx:for='{{order}}' wx:key="" wx:for-item='order'>
                <div class="Title">
                    <div class="title">{{order.username}}</div>
                    <div class='order_num'>订单号-{{order.order_sn}}</div>
                    <button plain="true" bindtap='acceptOrders' data-id="get" id='{{order.order_id}}' data-status='3' class="{{orderOrBusiness=='get'?'deal P_active':'deal'}}">接单</button>
                </div>
                <div class="list" bindtap="toDetail" id='{{order.order_id}}'>
                    <div class="list_l">
                        <div class="foodPic" wx:for="{{order.pic}}" wx:key="" wx:for-item='order_info'>
                            <image src="{{url}}{{order_info.goods_img}}"></image>
                            <text>{{order_info.goods_number}}</text>
                        </div>
                    </div>
                    <div class='list_r iconfont icon-more'></div>
                </div>
                <div class="Title">
                    <div class="time">倒计时</div>
                    <div class='total'>共{{order.total_number}}件商品</div>
                    <div class='sum'>
                        <text>实付</text>
                        <text>￥{{order.total_price}}</text>
                    </div>
                </div>
            </div>
        </div>
        <div class="P_get_P" wx:if="{{orderOrBusiness=='get'}}">
            <div class="goods" wx:for='{{order}}' wx:key="" wx:for-item='order'>
                <div class="Title">
                    <div class="title">{{order.username}}</div>
                    <div class='order_num'>取货码：{{order.order_extract}}</div>
                    <button plain="true" class="{{orderOrBusiness=='eva'?'deal P_active':'deal'}}">待配送</button>
                </div>
                <div class="list" bindtap="toDetail" id='{{order.order_id}}'>
                    <div class="list_l">
                        <div class="foodPic" wx:for="{{order.pic}}" wx:key="" wx:for-item="order_info">
                            <image src="{{url}}{{order_info.goods_img}}"></image>
                            <text>{{order_info.goods_number}}</text>
                        </div>
                    </div>
                    <div class='list_r iconfont icon-more'></div>
                </div>
                <div class="Title">
                    <div class="time">{{order.order_start_time}}</div>
                    <div class='total'>共{{order.total_number}}件商品</div>
                    <div class='sum'>
                        <text>实付</text>
                        <text>￥{{order.total_price}}</text>
                    </div>
                </div>
            </div>
        </div>
        <div class="P_eva_P" wx:if="{{orderOrBusiness=='eva'}}">
            <div class="goods" wx:for='{{order}}' wx:key="" wx:for-item='order'>
                <div class="Title">
                    <div class="title">{{order.username}}</div>
                    <div class='order_num'>订单号-{{order.order_sn}}</div>
                    <button plain="true" class="{{orderOrBusiness=='eva'?'deal P_active':'deal'}}">已完成</button>
                </div>
                <div class="list" bindtap="toDetail" id='{{order.order_id}}'>
                    <div class="list_l">
                        <div class="foodPic" wx:for="{{order.pic}}" wx:key="" wx:for-item="order_info">
                            <image src="{{url}}{{order_info.goods_img}}"></image>
                            <text>{{order_info.goods_number}}</text>
                        </div>
                    </div>
                    <div class='list_r iconfont icon-more'></div>
                </div>
                <div class="Title">
                    <div class="time">{{order.order_start_time}}</div>
                    <div class='total'>共{{order.total_number}}件商品</div>
                    <div class='sum'>
                        <text>实付</text>
                        <text>￥{{order.total_price}}</text>
                    </div>
                </div>
            </div>
        </div>
        <div class="P_refund_P" wx:if="{{orderOrBusiness=='refund'}}">
            <div class="goods" wx:for='{{order}}' wx:key="" wx:for-item='order'>
                <div class="Title">
                    <div class="title">{{order.username}}</div>
                    <div class='order_num'>订单号-{{order.order_sn}}</div>
                    <button plain="true" class="{{orderOrBusiness=='eva'?'deal P_active':'deal'}}">已完成</button>
                </div>
                <div class="list" bindtap="toDetail" id='{{order.order_id}}'>
                    <div class="list_l">
                        <div class="foodPic" wx:for="{{order.pic}}" wx:key="" wx:for-item="order_info">
                            <image src="{{url}}{{order_info.goods_img}}"></image>
                            <text>{{order_info.goods_number}}</text>
                        </div>
                    </div>
                    <div class='list_r iconfont icon-more'></div>
                </div>
                <div class="Title">
                    <div class="time">{{order.order_start_time}}</div>
                    <div class='total'>共{{order.total_number}}件商品</div>
                    <div class='sum'>
                        <text>实付</text>
                        <text>￥{{order.total_price}}</text>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--me.wxml  -->
    <div class="container page4" wx:if="{{pageType==4}}">
        <div class='me_top'>
            <div>可提金额(元)</div>
            <div>冻结基金(元)</div>
            <div>
                <div>{{money_show_status==0?shop.shop_money:'* * * * * '}}</div>
                <text bindtap="onshow_money" data-status='{{money_show_status}}' class="iconfont {{money_show_status==0?'icon-hide':'icon-show'}}"></text>
                <div>{{shop.blocked_fund}}</div>
                <button plain="true" bindtap="toBank" id='{{shop_id}}'>一键提现</button>
            </div>
        </div>
        <div class='meMsg'>
            <div bindtap="chooseType" pageType="3" data-id="3">
                <div>{{all_order_count}}</div>
                <text>累计订单</text>
            </div>
            <div bindtap="chooseType" pageType="3" data-id="3">
                <div>{{today_price}}</div>
                <text>今日收益</text>
            </div>
            <div bindtap="chooseType" pageType="3" data-id="3">
                <div>{{today_order_count}}</div>
                <text>今日订单</text>
            </div>
            <div bindtap="chooseType" pageType="3" data-id="3">
                <div>{{stay_order}}</div>
                <text>待收货</text>
            </div>
        </div>
        <div class="mePag" bindtap="toUnpay">
            <div>
                <div>
                    <text>未结算订单</text>
                </div>
                <div>
                    <text class='iconfont'>￥{{unsettled_price}}</text>
                    <text class="iconfont icon-more"></text>
                </div>
            </div>
        </div>
        <div class='meCate meCate1'>
            <div class='me_uplod' bindtap="toUpload" id='{{shop.shop_id}}'>
                <div>
                    <text class='iconfont icon-upload'></text>
                </div>
                <div>上传新品</div>
            </div>
            <div class='me_manage' bindtap="toManage" id='{{shop.shop_id}}'>
                <div>
                    <text class='iconfont icon-manage'></text>
                </div>
                <div>商品管理</div>
            </div>
            <div class='me_shop' bindtap="toShop" id='{{shop.shop_id}}'>
                <div>
                    <text class='iconfont icon-shop'></text>
                </div>
                <div>店铺信息</div>
            </div>
        </div>
        <div class='meCate'>
            <div class='me_eva' bindtap="toEva" id='{{shop.shop_id}}'>
                <div>
                    <text class='iconfont icon-eva'></text>
                </div>
                <div>查看评价</div>
            </div>
            <div class='me_refund' bindtap="toRefund" id='{{shop.shop_id}}'>
                <div>
                    <text class='iconfont icon-refund'></text>
                </div>
                <div>退款/售后</div>
            </div>
            <div class='me_serve'>
                <div>
                    <text class='iconfont icon-kefu'></text>
                </div>
                <div>客服/反馈</div>
            </div>
        </div>
        <!-- <div class="mePag log_out">退出账号</div> -->
    </div>
    <div class="bottomfixed">
        <div bindtap="chooseType" data-id="1">
            <image src="../../img/icon1.svg" wx:if="{{pageType!=1&&!restaurant}}"></image>
            <image src="../../img/icon1-active.svg" wx:if="{{pageType==1&&!restaurant}}"></image>
            <image src="../../img/shop-active.svg" wx:if="{{pageType==1&&restaurant}}"></image>
            <image src="../../img/shop.svg" wx:if="{{pageType!=1&&restaurant}}"></image>
            <div class="{{pageType==1?'fixedtext activecolor':'fixedtext'}}" wx:if="{{restaurant}}">状态</div>
            <div class="{{pageType==1?'fixedtext activecolor':'fixedtext'}}" wx:if="{{!restaurant}}">状态</div>
        </div>
        <div bindtap="chooseType" data-id="3">
            <image src="../../img/icon2.svg" wx:if="{{pageType!=3}}"></image>
            <image src="../../img/icon2-active.svg" wx:if="{{pageType==3}}"></image>
            <div class="{{pageType==3?'fixedtext activecolor':'fixedtext'}}">订单</div>
        </div>
        <div bindtap="chooseType" data-id="4">
            <image src="../../img/icon4.svg" wx:if="{{pageType!=4}}"></image>
            <image src="../../img/icon4-active.svg" wx:if="{{pageType==4}}"></image>
            <div class="{{pageType==4?'fixedtext activecolor':'fixedtext'}}">我的</div>
        </div>
        <!-- <div bindtap="chooseTypes" data-id="4">
    <div class="{{pageType==4?'fixedtext activecolor':'fixedtext'}}">我的</div>
  </div> -->
    </div>
</body>

</html>